.card
  .card-header
    h3.card-title
      i.fas.fa-history
      |  最近上传动态
    .card-tools
      span.badge.bg-yellow
        = @channel.releases.count

  .card-body.p-0
    ul.products-list.product-list-in-card
      - if @releases.count > 0
        - @releases.each do |release|
          li.item
            .product-img
              = app_icon(release, size: :medium, class: 'img-circle')
            .product-info
              a.product-title href="javascript:void(0)"
                = link_to release.app_name, channel_release_path(release.channel, release)
              small
                span.badge.badge-light.float-right data-toggle="tooltip" title="#{release.created_at}"
                  = time_ago_in_words(release.created_at)
              span.product-description
                = "#{release.release_version} (#{release.build_version})"
      - else
        li.item.p-3
          | 还没有收到任何上传记录，开始
          a href="#{new_channel_release_path(@channel)}" 上传第一个版本
          | 吧。
  - if @releases.total_pages > 1
    .card-footer.clearfix
      .float-right
        = paginate @releases
